/// code : 200
/// msg : "success"
/// data : {"userId":1171849,"mobile":"181****9878","userName":null,"realName":null,"authStep":1,"userImg":null,"indexBannerList":[],"h5JumpList":[{"title":"贷前必查","imageUrl":"","jumpUrl":"www.baidu.com"},{"title":"汽车贷款","imageUrl":"","jumpUrl":"http://ryh5.ms.sit/carloan"},{"title":"借款指南","imageUrl":"","jumpUrl":"http://ryh5.ms.sit/carloan"}],"onlineServiceUrl":"https://chat56.live800.com/live800/chatClient/chatbox.jsp?companyID=1517941&configID=577421&jid=8540697262&operatorId=129886&s=1","onlineServiceImg":"http://china-loan-market.oss-cn-beijing.aliyuncs.com/img/8216082A89114F4E81A44E400EAE4D6A.jpeg","onlineServiceMobile":"15383262148","authFlag":{"hasShowAuthFlag":1,"showAuthTip":"完善个人信息最高获取20万额度"}}

class MineInfoBean {
  MineInfoBean({
    this.code,
    this.msg,
    this.data,
  });

  MineInfoBean.fromJson(dynamic json) {
    code = json['code'];
    msg = json['msg'];
    data = json['data'] != null ? DataInfo.fromJson(json['data']) : null;
  }

  num? code;
  String? msg;
  DataInfo? data;

  MineInfoBean copyWith({
    num? code,
    String? msg,
    DataInfo? data,
  }) =>
      MineInfoBean(
        code: code ?? this.code,
        msg: msg ?? this.msg,
        data: data ?? this.data,
      );

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['code'] = code;
    map['msg'] = msg;
    if (data != null) {
      map['data'] = data?.toJson();
    }
    return map;
  }
}

/// userId : 1171849
/// mobile : "181****9878"
/// userName : null
/// realName : null
/// authStep : 1
/// userImg : null
/// indexBannerList : []
/// h5JumpList : [{"title":"贷前必查","imageUrl":"","jumpUrl":"www.baidu.com"},{"title":"汽车贷款","imageUrl":"","jumpUrl":"http://ryh5.ms.sit/carloan"},{"title":"借款指南","imageUrl":"","jumpUrl":"http://ryh5.ms.sit/carloan"}]
/// onlineServiceUrl : "https://chat56.live800.com/live800/chatClient/chatbox.jsp?companyID=1517941&configID=577421&jid=8540697262&operatorId=129886&s=1"
/// onlineServiceImg : "http://china-loan-market.oss-cn-beijing.aliyuncs.com/img/8216082A89114F4E81A44E400EAE4D6A.jpeg"
/// onlineServiceMobile : "15383262148"
/// authFlag : {"hasShowAuthFlag":1,"showAuthTip":"完善个人信息最高获取20万额度"}

class DataInfo {
  DataInfo({
    this.userId,
    this.mobile,
    this.userName,
    this.realName,
    this.authStep,
    this.userImg,
    this.indexBannerList,
    this.h5JumpList,
    this.onlineServiceUrl,
    this.onlineServiceImg,
    this.onlineServiceMobile,
    this.authFlag,
  });

  DataInfo.fromJson(dynamic json) {
    userId = json['userId'];
    mobile = json['mobile'];
    userName = json['userName'];
    realName = json['realName'];
    authStep = json['authStep'];
    userImg = json['userImg'];
    if (json['indexBannerList'] != null) {
      indexBannerList = [];
      json['indexBannerList'].forEach((v) {
        // indexBannerList?.add(Dynamic.fromJson(v));
      });
    }
    if (json['h5JumpList'] != null) {
      h5JumpList = [];
      json['h5JumpList'].forEach((v) {
        h5JumpList?.add(H5JumpList.fromJson(v));
      });
    }
    onlineServiceUrl = json['onlineServiceUrl'];
    onlineServiceImg = json['onlineServiceImg'];
    onlineServiceMobile = json['onlineServiceMobile'];
    authFlag = json['authFlag'] != null ? AuthFlag.fromJson(json['authFlag']) : null;
  }

  num? userId;
  String? mobile;
  dynamic userName;
  dynamic realName;
  num? authStep;
  dynamic userImg;
  List<dynamic>? indexBannerList;
  List<H5JumpList>? h5JumpList;
  String? onlineServiceUrl;
  String? onlineServiceImg;
  String? onlineServiceMobile;
  AuthFlag? authFlag;

  DataInfo copyWith({
    num? userId,
    String? mobile,
    dynamic userName,
    dynamic realName,
    num? authStep,
    dynamic userImg,
    List<dynamic>? indexBannerList,
    List<H5JumpList>? h5JumpList,
    String? onlineServiceUrl,
    String? onlineServiceImg,
    String? onlineServiceMobile,
    AuthFlag? authFlag,
  }) =>
      DataInfo(
        userId: userId ?? this.userId,
        mobile: mobile ?? this.mobile,
        userName: userName ?? this.userName,
        realName: realName ?? this.realName,
        authStep: authStep ?? this.authStep,
        userImg: userImg ?? this.userImg,
        indexBannerList: indexBannerList ?? this.indexBannerList,
        h5JumpList: h5JumpList ?? this.h5JumpList,
        onlineServiceUrl: onlineServiceUrl ?? this.onlineServiceUrl,
        onlineServiceImg: onlineServiceImg ?? this.onlineServiceImg,
        onlineServiceMobile: onlineServiceMobile ?? this.onlineServiceMobile,
        authFlag: authFlag ?? this.authFlag,
      );

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['userId'] = userId;
    map['mobile'] = mobile;
    map['userName'] = userName;
    map['realName'] = realName;
    map['authStep'] = authStep;
    map['userImg'] = userImg;
    if (indexBannerList != null) {
      map['indexBannerList'] = indexBannerList?.map((v) => v.toJson()).toList();
    }
    if (h5JumpList != null) {
      map['h5JumpList'] = h5JumpList?.map((v) => v.toJson()).toList();
    }
    map['onlineServiceUrl'] = onlineServiceUrl;
    map['onlineServiceImg'] = onlineServiceImg;
    map['onlineServiceMobile'] = onlineServiceMobile;
    if (authFlag != null) {
      map['authFlag'] = authFlag?.toJson();
    }
    return map;
  }
}

/// hasShowAuthFlag : 1
/// showAuthTip : "完善个人信息最高获取20万额度"

class AuthFlag {
  AuthFlag({
    this.hasShowAuthFlag,
    this.showAuthTip,
  });

  AuthFlag.fromJson(dynamic json) {
    hasShowAuthFlag = json['hasShowAuthFlag'];
    showAuthTip = json['showAuthTip'];
  }

  num? hasShowAuthFlag;
  String? showAuthTip;

  AuthFlag copyWith({
    num? hasShowAuthFlag,
    String? showAuthTip,
  }) =>
      AuthFlag(
        hasShowAuthFlag: hasShowAuthFlag ?? this.hasShowAuthFlag,
        showAuthTip: showAuthTip ?? this.showAuthTip,
      );

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['hasShowAuthFlag'] = hasShowAuthFlag;
    map['showAuthTip'] = showAuthTip;
    return map;
  }
}

/// title : "贷前必查"
/// imageUrl : ""
/// jumpUrl : "www.baidu.com"

class H5JumpList {
  H5JumpList({
    this.title,
    this.imageUrl,
    this.jumpUrl,
  });

  H5JumpList.fromJson(dynamic json) {
    title = json['title'];
    imageUrl = json['imageUrl'];
    jumpUrl = json['jumpUrl'];
  }

  String? title;
  String? imageUrl;
  String? jumpUrl;

  H5JumpList copyWith({
    String? title,
    String? imageUrl,
    String? jumpUrl,
  }) =>
      H5JumpList(
        title: title ?? this.title,
        imageUrl: imageUrl ?? this.imageUrl,
        jumpUrl: jumpUrl ?? this.jumpUrl,
      );

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['title'] = title;
    map['imageUrl'] = imageUrl;
    map['jumpUrl'] = jumpUrl;
    return map;
  }
}
